package com.cindata.common;

import java.util.List;

public class Result<T> {


    public Result(){};

    public Result(boolean success){
        this.success = success;
    }

    private boolean success;

    private Object object;

    String message;

    public  void setData(T t){
        this.object = t;
    }

    public T getData() {
        return (T) object;
    }

    private List<T> dataList;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public List<T> getDataList() {
        return dataList;
    }

    public void setDataList(List<T> dataList) {
        this.dataList = dataList;
    }
}
